//
//  CommentsPopView.h
//  Douyin
//
//  Created by Qiao Shi on 2018/7/30.
//  Copyright © 2018年 Qiao Shi. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "Constants.h"
#import "LoadMoreControl.h"
#import "MHComment.h"
@interface CommentsPopView:UIView
@property (nonatomic, strong) UILabel       *label;
@property (nonatomic, strong) UIImageView   *close;
@property(nonatomic, assign) BOOL isReplay;
@property(nonatomic, copy) VoidBlock commentSuccessBlock;
@property(nonatomic, strong) MHComment *replayComment;
- (instancetype)initWithAwemeId:(MHAwemeModel *)aweme;
- (void)show;
- (void)dismiss;
@end



@interface CommentListCell : UITableViewCell
@property (nonatomic, strong) UIImageView        *avatar;
@property (nonatomic, strong) UIImageView        *likeIcon;
@property (nonatomic, strong) UILabel            *nickName;
@property (nonatomic, strong) UILabel            *extraTag;
@property (nonatomic, strong) YYLabel            *content;
@property (nonatomic, strong) UILabel            *likeNum;
@property (nonatomic, strong) UILabel            *date;
@property (nonatomic, strong) UIView             *splitLine;
@property(nonatomic, strong) YYTextLayout *contentLayout;
-(void)initData:(MHComment *)comment;
+(CGFloat)cellHeight:(MHComment *)comment;
@end




@protocol CommentTextViewDelegate
@required
-(void)onSendText:(NSString *)text;
-(void)dissMissTextView;
@end
@interface CommentTextView : UIView
@property (nonatomic, strong) UITextView                     *textView;
@property (nonatomic, strong) id<CommentTextViewDelegate>    delegate;
@property (nonatomic, strong) UILabel            *placeholderLabel;
- (void)show;
- (void)dismiss;
@end
